from django.shortcuts import render
import logging
from rest_framework.response import Response
from rest_framework.views import APIView

# Create your views here.

# 查看logging 是不是生效

logger = logging.getLogger('erp')


class Hello(APIView):
    def get(self, request):
        print(logger.debug('debug基本信息'))
        print(logger.info('info基本信息'))
        print(logger.error('info基本信息'))
        return Response({'message': 'ok'})
